package com.flymobi.service;

import java.util.List;

import com.flymobi.fw.modules.CommonService;
import com.flymobi.po.FriendsLink;
import com.flymobi.util.QL;

public class FriendsLinkService extends CommonService {

	public List<FriendsLink> list(int startRow, int pagePerSize) {
		return dao.find(FriendsLink.class, QL.HQL.FriendsLink.LIST, new Object[] {},startRow, pagePerSize);
	}
	
	public Long getCount() {
		return dao.getCount(QL.HQL.FriendsLink.GET_COUNT, new Object[] {});
	}

	public void save(FriendsLink FriendsLink) {
		dao.save(FriendsLink);
	}

	public FriendsLink load(String id) {
		return dao.load(FriendsLink.class, new Long(id));
	}
	
	public FriendsLink get(String id) {
		return dao.get(FriendsLink.class, new Long(id));
	}

	public void delete(String id) {
		dao.delete(this.get(id));
	}
}
